package com.smart.manager.member.entities.models;


import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.member.entities.enums.PropsKind;
import com.smart.manager.member.entities.views.MemberView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 玩家背包
 * @author leo
 * @date 2023/10/04
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class MemberMaterialProps extends BaseLongModel {

    @ApiModelProperty("会员编号")
    @ManyToOne
    @JoinColumn(name = "member", referencedColumnName = "id")
    private MemberView member;

    @ApiModelProperty("物品数量")
    private Integer number;

    @ApiModelProperty("物品类型")
    private PropsKind kind;

    @ApiModelProperty("物品名称")
    private String name;

    @ApiModelProperty("物品图标")
    private String icon;

    @ApiModelProperty("物品档案代码")
    private String code;

    @ApiModelProperty("物品详情")
    private transient Object detail;

    @ApiModelProperty("物品耐久度")
    private String durable;

}
